package com.example.dao;

import com.example.entity.TreeTypeName;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TypeNameDao {
    @Select("select * from tree_type_name")
    List<TreeTypeName> selectTypeName(TreeTypeName treeTypeName);

    @Select("select treetypename from tree_type_name ")
    List<String> loadTreetypename();

    @Select("select treename from tree left join user on tree.username = user.username where user.user_id = #{userId}")
    List<String> loadTreename(Integer userId);
}
